import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import VR from 'postcss-px-to-viewport'
// https://vite.dev/config/
export default defineConfig({
  plugins: [react()],
  // 2.使用rem结合css3正确适配页面
  css:{
    postcss:{
      plugins:[VR({
        viewportWidth: 780,
         viewportUnit: 'vw',
      })]
    }
  }
})
